/*
 * @Description: 用户管理
 * @Author: wangwangwang
 * @Date: 2020-06-30 14:18:14
 * @LastEditors: wangwangwang
 * @LastEditTime: 2020-07-01 15:14:12
 */
import request from '@/utils/request'
export const Download = "/base/system/user/export";
export const exportTemplate = "/base/system/user/exportTemplate";
export const exportTemplate2 = "/base/system/user/exportPersonalTemplate";

// 获取用户数据
export function queryPage(params) {
  return request({
    url: '/base/system/user/queryPage',
    method: 'post',
    data: params
  })
}
// 新增、编辑用户
export function saveOrUpdate(params) {
  return request({
    url: '/base/system/user/save_or_update',
    method: 'post',
    data: params
  })
}
export function updateOrDelete(params) {
  return request({
    url: '/base/system/user/batch_update_or_delete',
    method: 'post',
    data: params,
  })
}
export function queryjobPage(data) {
  return request({
    url: '/base/system/base/stations/query_page',
    method: 'post',
    data
  })
}
export function updateSortNum(data) {
  return request({
    url: '/base/system/user/update_sort_num',
    method: 'post',
    data
  })
}
/**重置密码*/
export function reset_password(data) {
  return request({
    url: '/base/system/user/reset_password',
    method: 'post',
    data
  })
}
/**根据岗位id获取职级*/
export function get_list(data) {
  return request({
    url: '/base/system/base/rank/post/get_list',
    method: 'post',
    data
  })
}

